﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using EventSys.BussinesEntities;
using EventSys.Repository;
using Microsoft.Practices.Unity;


namespace EventSys.BussinesLogic
{
    public class RolesService:IRolesService
    {
        [Dependency]
        public IRolesRepository rolesRepository { get; set; }

        public List<webpages_Roles> MostrarRoles()
        {
            return rolesRepository.MostrarRoles();
        }

        public webpages_Roles GetRolesById(int id)
        {
            return rolesRepository.GetRolesById(id);
        }

        public void AddRoles(webpages_Roles roles)
        {
            rolesRepository.AddRoles(roles);
        }

        public void UpdateRoles(webpages_Roles roles)
        {
            rolesRepository.UpdateRoles(roles);
            
        }

        public void RemoveRoles(int id)
        {
            rolesRepository.RemoveRoles(id);
        }

        public List<webpages_Roles> GetFromAllRolesByCriterio(string criterio)
        {
            throw new NotImplementedException();
        }
    }
}
